// 用来放置项目配置信息
// console.log("当前环境:", import.meta.env)

const BASE_URL = import.meta.env.VITE_BASE_URL
export const API_CONFIG = {
    // 登录接口
    loginApi: `${BASE_URL}/auth/login`,
    logoutApi: `${BASE_URL}/auth/logout`,
    getUserListApi: `${BASE_URL}/user/list`,
    deleteUserApi: `${BASE_URL}/user/delete`,
    addUserApi: `${BASE_URL}/user/add`,
    updateUserApi: `${BASE_URL}/user/update`,

    // 集群接口
    addClusterApi: `${BASE_URL}/cluster/add`,
    updateClusterApi: `${BASE_URL}/cluster/update`,
    deleteClusterApi: `${BASE_URL}/cluster/delete`,
    getClusterApi: `${BASE_URL}/cluster/get`,
    listClusterApi: `${BASE_URL}/cluster/list`,
    statisticsClusterApi: `${BASE_URL}/cluster/statistics`,
    detailClusterApi: `${BASE_URL}/cluster/detail`,

    // 节点接口
    createNodeApi: `${BASE_URL}/node/create`,
    updateNodeApi: `${BASE_URL}/node/update`,
    deleteNodeApi: `${BASE_URL}/node/delete`,
    getNodeApi: `${BASE_URL}/node/get`,
    listNodeApi: `${BASE_URL}/node/list`,

    // namespace接口
    createNamespaceApi: `${BASE_URL}/namespace/create`,
    updateNamespaceApi: `${BASE_URL}/namespace/update`,
    deleteNamespaceApi: `${BASE_URL}/namespace/delete`,
    getNamespaceApi: `${BASE_URL}/namespace/get`,
    listNamespaceApi: `${BASE_URL}/namespace/list`,
    copyNamespaceApi: `${BASE_URL}/namespace/copy`,
    detailNamespaceApi: `${BASE_URL}/namespace/detail`,

    // pod接口
    getPodListApi: `${BASE_URL}/pod/list`,
    deletePodApi: `${BASE_URL}/pod/delete`,
    deletePodListApi: `${BASE_URL}/pod/deleteList`,
    getPodApi: `${BASE_URL}/pod/get`,

    // deployment接口
    getDeploymentListApi: `${BASE_URL}/deployment/list`,
    deleteDeploymentApi: `${BASE_URL}/deployment/delete`,
    getDeploymentApi: `${BASE_URL}/deployment/get`,
    createDeploymentApi: `${BASE_URL}/deployment/create`,
    updateDeploymentApi: `${BASE_URL}/deployment/update`,
    getReplicaSetListApi: `${BASE_URL}/replicaset/list`,

    // statefulset接口
    getStatefulSetListApi: `${BASE_URL}/statefulset/list`,
    deleteStatefulSetApi: `${BASE_URL}/statefulset/delete`,
    getStatefulSetApi: `${BASE_URL}/statefulset/get`,
    createStatefulSetApi: `${BASE_URL}/statefulset/create`,
    updateStatefulSetApi: `${BASE_URL}/statefulset/update`,

    // daemonset接口
    getDaemonSetListApi: `${BASE_URL}/daemonset/list`,
    deleteDaemonSetApi: `${BASE_URL}/daemonset/delete`,
    getDaemonSetApi: `${BASE_URL}/daemonset/get`,
    createDaemonSetApi: `${BASE_URL}/daemonset/create`,
    updateDaemonSetApi: `${BASE_URL}/daemonset/update`,

    // cronjob接口
    getCronJobListApi: `${BASE_URL}/cronjob/list`,
    deleteCronJobApi: `${BASE_URL}/cronjob/delete`,
    getCronJobApi: `${BASE_URL}/cronjob/get`,
    createCronJobApi: `${BASE_URL}/cronjob/create`,
    updateCronJobApi: `${BASE_URL}/cronjob/update`,

    // service接口
    getServiceListApi: `${BASE_URL}/service/list`,
    deleteServiceApi: `${BASE_URL}/service/delete`,
    getServiceApi: `${BASE_URL}/service/get`,
    createServiceApi: `${BASE_URL}/service/create`,
    updateServiceApi: `${BASE_URL}/service/update`,

    // ingress接口
    getIngressListApi: `${BASE_URL}/ingress/list`,
    deleteIngressApi: `${BASE_URL}/ingress/delete`,
    getIngressApi: `${BASE_URL}/ingress/get`,
    getIngressTopologyApi: `${BASE_URL}/ingress/topology`,
    createIngressApi: `${BASE_URL}/ingress/create`,
    updateIngressApi: `${BASE_URL}/ingress/update`,
    getIngressClassList: `${BASE_URL}/ingressclass/list`,

    // secret接口
    getSecretListApi: `${BASE_URL}/secret/list`,
    deleteSecretApi: `${BASE_URL}/secret/delete`,
    getSecretApi: `${BASE_URL}/secret/get`, // 获取通用类型接口
    // getSecretApi: `${BASE_URL}/secret/getDocker`, // 获取镜像类型接口
    // getSecretApi: `${BASE_URL}/secret/getTLS`, // 获取tls类型接口
    createSecretApi: `${BASE_URL}/secret/create`,
    updateSecretApi: `${BASE_URL}/secret/update`,

    // configmap接口
    getConfigListMapApi: `${BASE_URL}/configmap/list`,
    deleteConfigMapApi: `${BASE_URL}/configmap/delete`,
    getConfigMapApi: `${BASE_URL}/configmap/get`,
    createConfigMapApi: `${BASE_URL}/configmap/create`,
    updateConfigMapApi: `${BASE_URL}/configmap/update`,

    // pv接口
    getPVListApi: `${BASE_URL}/pv/list`,
    deletePVApi: `${BASE_URL}/pv/delete`,
    getPVApi: `${BASE_URL}/pv/get`,
    createPVApi: `${BASE_URL}/pv/create`,
    updatePVApi: `${BASE_URL}/pv/update`,

    // pvc接口
    getPVCListApi: `${BASE_URL}/pvc/list`,
    deletePVCApi: `${BASE_URL}/pvc/delete`,
    getPVCApi: `${BASE_URL}/pvc/get`,
    createPVCApi: `${BASE_URL}/pvc/create`,
    updatePVCApi: `${BASE_URL}/pvc/update`,

    // storageclass接口
    getStorageClassListApi: `${BASE_URL}/storageclass/list`,
    deleteStorageClassApi: `${BASE_URL}/storageclass/delete`,
    getStorageClassApi: `${BASE_URL}/storageclass/get`,
    createStorageClassApi: `${BASE_URL}/storageclass/create`,
    updateStorageClassApi: `${BASE_URL}/storageclass/update`,

    // tools接口
    createOrUpdateByYamlApi: `${BASE_URL}/tools/yaml`,


}

export const CONFIG = {
    TOKEN_NAME: "Authorization"
}